﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;

namespace Common.Objects
{
    public class SystemUser : GenericPrincipal
    {
        public SystemUser(IIdentity identity, string[] roles, string login, int userId)
            : base(identity, roles)
        {
            Login = login;
            Roles = roles.ToList();
            UserId = userId;
        }

        public string Login { get; set; }

        public int UserId { get; set; }

        public IList<string> Roles { get; set; }  
    }
}
